package com.crealth.db;


import com.crealth.manager.MybatisManager;
import com.crealth.model.TeamWorkDiaryModel;

public class TeamWorkDiaryDb {

	public static void insertTeamWorkDiary(TeamWorkDiaryModel workDiary) {
		MybatisManager.workDiaryMapper.insertTeamWorkDiary(workDiary);
		MybatisManager.commit();		
	}
    
    public static TeamWorkDiaryModel selectTeamWorkDiary(int teamID, String strDay) {
    	TeamWorkDiaryModel workDiary = MybatisManager.workDiaryMapper.selectTeamWorkDiary(teamID, strDay);
    	
    	return workDiary;
    }
    
    public static Integer updateTeamWorkDiaryByID(TeamWorkDiaryModel workDiary) {
    	Integer res = MybatisManager.workDiaryMapper.updateTeamWorkDiaryByID(workDiary);
    	MybatisManager.commit();
    	
    	return res;
    }
	
}
